import request from '@/utils/request'

export function getStampRecordPage(reportId) {
  return request({
    url: '/administrative_record/list',
    method: 'get',
    params: { reportId }
  })
}

export function getStampRecordById(id) {
  return request({
    url: '/administrative_record/' + id,
    method: 'get'
  })
}

export function deleteStampRecord(id) {
  return request({
    url: '/administrative_record/delete/' + id,
    method: 'delete'
  })
}

export function addStampRecord(recordObj) {
  return request({
    url: '/administrative_record/add',
    method: 'post',
    data: recordObj
  })
}

export function updateStampRecord(recordObj) {
  return request({
    url: '/administrative_record/update',
    method: 'put',
    data: recordObj
  })
}

